How to implement a simple Web server in Python